import fastavro


def read_avro_file(filename):
    print(filename)
    records = []
    with open(filename, "rb") as f:
        reader = fastavro.reader(f)
        for record in reader:
            print(record)
            records.append(record)
    return records

avro_filename = '/opt/paimon/default.db/test/manifest/index-manifest-838cbba2-c6b7-4e36-bf4f-fd4d7b85c6d3-0'

m_records = read_avro_file(avro_filename)

for m_record in m_records:
    print(m_record)